#pragma once
#include "entitybody.h"
class OgreEntityBody :
	public EntityBody
{

	Ogre::Entity* modelEntity;
	Ogre::SceneManager * sceneMgr;

public:

	void setPosition(Ogre::Vector3 position);
	Ogre::Vector3 getPosition();

	void setOrientation(Ogre::Quaternion orientation);
	Ogre::Quaternion getOrientation();


	void setLocalPosition(Ogre::Vector3 position);
	Ogre::Vector3 getLocalPosition();

	void setLocalOrientation(Ogre::Quaternion orientation);
	Ogre::Quaternion getLocalOrientation();

	void setLookAt(Ogre::Vector3 target);
	Ogre::Vector3 getFacingDir();

	void addForce(Ogre::Vector3 force);
	void addTorque(Ogre::Vector3 torque);

	Ogre::SceneNode* getParentNode();

	virtual void killBody();


	OgreEntityBody(Ogre::Entity* modelEntity, Ogre::SceneManager * sceneMgr);
	virtual ~OgreEntityBody(void);
};

